﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace fap
{
    /// <summary>
    /// Window1.xaml 的交互逻辑
    /// </summary>
    public partial class 提示页面 : Window
    {
        public string 字符显示 = "";
        public bool 是否;
        public 提示页面(string str)
        {
            try
            {
                InitializeComponent();
                this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                字符显示 = str;
                显示框.Content = 字符显示;
                中.Visibility = Visibility.Hidden;
                左.Visibility = Visibility.Visible;
                右.Visibility = Visibility.Visible;
            }
            catch
            {

            }
        }


        public 提示页面(string str,string 确认窗口)
        {
            try
            {
                InitializeComponent();

                this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                字符显示 = str;
                显示框.Content = 字符显示;
                中.Visibility = Visibility.Visible;
                左.Visibility = Visibility.Hidden;
                右.Visibility = Visibility.Hidden;
            }
            catch
            {

            }
           
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            是否 = true;
            this.Hide();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            是否 = false;
            this.Hide();
        }

        private void 鼠标进入(object sender, MouseEventArgs e)
        {
            Image image = (Image)sender;
            switch (image.Tag.ToString())
            {
                case "勾":
                    {

                        Uri ur = new Uri("/fap;component/素材/提示页面/圈勾填充.png", UriKind.Relative);
                        BitmapImage bp = new BitmapImage(ur);
                        image.Source = bp;

                        break;

                    }
                case "叉":
                    {

                        Uri ur = new Uri("/fap;component/素材/提示页面/圈叉填充.png", UriKind.Relative);
                        BitmapImage bp = new BitmapImage(ur);
                        image.Source = bp;
                        break;

                    }


                  


            }
            TimeSpan timeSpan = new TimeSpan(0, 0, 0, 0, 500);
            WPF相应类.ScaleEasingAnimationShow(image, 1, 1.2, 2, timeSpan);

        }

        private void 鼠标移出(object sender, MouseEventArgs e)
        {
            Image image = (Image)sender;
            switch (image.Tag.ToString())
            {
                case "勾":
                    {

                        Uri ur = new Uri("/fap;component/素材/提示页面/圈勾.png", UriKind.Relative);
                        BitmapImage bp = new BitmapImage(ur);
                        image.Source = bp;

                        break;

                    }
                case "叉":
                    {

                        Uri ur = new Uri("/fap;component/素材/提示页面/圈叉.png", UriKind.Relative);
                        BitmapImage bp = new BitmapImage(ur);
                        image.Source = bp;
                        break;

                    }





            }
            TimeSpan timeSpan = new TimeSpan(0, 0, 0, 0, 500);
            WPF相应类.ScaleEasingAnimationShow(image, 1.2, 1, 2, timeSpan);
        }

        private void Button_Click_2(object sender, MouseButtonEventArgs e)
        {
            this.Close();
        }
    }
}
